package com.bh.extend.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.bh.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 分段体积价格对象 jc_customer_volume_price
 * 
 * @author slx
 * @date 2023-08-06
 */
@TableName("jc_customer_volume_price")
@Data
public class JcCustomerVolumePrice
{
    private static final long serialVersionUID = 1L;

    /** 体积ID */
    private Long volumeId;

    /** 价格ID */
    @Excel(name = "价格ID")
    private Long priceId;

    /** 开始体积(包括) */
    @Excel(name = "开始体积(包括)")
    private Long startValue;

    /** 结束体积(不包括) */
    @Excel(name = "结束体积(不包括)")
    private Long endValue;

    /** 体积价格 */
    @Excel(name = "体积价格")
    private BigDecimal priceValue;

    /** 干线支出价格 */
    @Excel(name = "干线支出价格")
    private BigDecimal trunkPrice;

    /** 配送支出价格 */
    @Excel(name = "配送支出价格")
    private BigDecimal regionalPrice;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("volumeId", getVolumeId())
            .append("priceId", getPriceId())
            .append("startValue", getStartValue())
            .append("endValue", getEndValue())
            .append("priceValue", getPriceValue())
            .toString();
    }
}
